/* eslint-disable */
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'Authorization',
      component: (resolve) => require(['../view/Authorization.vue'], resolve)
    },
    {
      path: '/mainView',
      name: 'MainView' ,
      meta: {
        requiresAuth: true
      },
      component: (resolve) => require(['../view/MainView.vue'], resolve),
      children:[
        {
          path: "/create",
          name: "Create",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/Create.vue'],resolve)
        },
        {
          path: "/T_personalcenter",
          name: "T_personalcenter",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/T_personalcenter.vue'],resolve)
        },
        {
          path: "/T-welcome",
          name: "T-welcome",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/T_welcome.vue'],resolve)
        },
        {
          path: "/T-projectMain",
          name: "T-projectMain",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../view/T-projectMain.vue'],resolve)
        },
        {
          path: "/T-views",
          name: "T-views",
          component: (resolve) => require(['../views/T_view.vue'],resolve)
        },
        {
          path: "/tag",
          name: "Tag",
          meta: {
            requiresAuth: true
          },
          component: (resolve) => require(['../views/Tag.vue'],resolve)
        },
        {
          path: "/s-personalcenter",
          name: "S-personalcenter",
          component: (resolve) => require(['../views/S_personalcenter.vue'],resolve)
        },
        {
          path: "/S-views-single",
          name: "S-views-single",
          component: (resolve) => require(['../views/S_view_single.vue'],resolve)
        },{
          path: "/S-views-all",
          name: "S-views-all",
          component: (resolve) => require(['../views/S_view_all.vue'],resolve)
        },{
          path: "/S-views-select",
          name: "S-views-select",
          component: (resolve) => require(['../views/S_view_select.vue'],resolve)
        },
        {
          path: "/S-welcome",
          name: "S-welcome",
          component: (resolve) => require(['../views/S_welcome.vue'],resolve)
        },
        {
          path: "/Report2",
          name: "Report2",
          component: (resolve) => require(['../views/Report2.vue'],resolve)
        },
        {
          path: "/S-views",
          name: "S-views",
          component: (resolve) => require(['../views/S_view.vue'],resolve)
        },
      ]
    }
  ]
})
